package com.project.server.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 员工姓名
     */
    private String username;


    private String password;

    /**
     * 职位
     */
    private String nickname;

    /**
     * 联系电话
     */
    private String phone;

    private String email;

    /**
     * 联系电话
     */
    private String avatar;

    /**
     * 状态：0-离职 1-在职
     */
    private Integer status;


    /**
     * 性别
     */
    private Integer gender;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    @TableField(exist = false)
    private Boolean rememberMe;


}
